package com.async.designpatterns.structure.decorator;

/**
 * 抽象装饰
 */
public class Decorator implements Component {

    private Component component;
    public Decorator(Component component){
        this.component = component;
    }

    @Override
    public void display() {
        component.display();
    }

    @Override
    public void setImage(String img) {
        component.setImage(img);
    }

    @Override
    public void action(String action) {
        component.action(action);
    }
}
